#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''eof
name:一度关联方失信数目
code:U_R1EntDishonesty
tableName:
columnName:
groups:关联方
dependencies:EG_BBD
type:常用指标
dataSourceType:在线指标
description:
eof'''

'''
直接从返回的EG接口取出
u_R1EntDishonesty :
'''


def u_R1EntDishonesty():
    null_type_list = ['', None, 'null', 'Null', 'NULL', '/', ' ']

    try:
        R1EntDishonesty = EG_BBD['U_R1EntDishonesty']

        if R1EntDishonesty not in null_type_list:
            return float(R1EntDishonesty)
        else:
            return u'缺失值'

    except:
        return u'缺失值'


result = u_R1EntDishonesty()